#  +----------------------------------------------------------------------+
#  | Makefile for PHP Extension                                           |
#  +----------------------------------------------------------------------+
#  | Copyright (c) 2009-2011 Tencent Inc. All Rights Reserved.            |
#  +----------------------------------------------------------------------+
#  | Authors: The Club Dev Team, ISRD, Tencent Inc.                       |
#  |                     terryye@tencent.com                              |
#  +----------------------------------------------------------------------+




#编译模块(用于php5.2.0)
tphp_demofunc.so :
#编译
	g++ -fpic -Wall -g -c tphp_demofunc.cpp  -I../php/php-5.2.0/include/php -I../php/php-5.2.0/include/php/main -I../php/php-5.2.0/include/php/TSRM -I../php/php-5.2.0/include/php/Zend
#链接
	g++ -shared -lpthread -g -o tphp_demofunc.so tphp_demofunc.o
#显示生成的文件名
	@echo $@

#方便删除
clean: 
	rm -f *.o
	rm -f *.so*